﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YYSite.Common;
using YYSite.Common.Domain;
using YYSite.Common.Logging;
using YYSite.Domain.System.Positions;

namespace YYSite.Application.System.Positions
{
    public class PositionService : ApplicationService,IPositionService
    {
        public PositionService(ILogger logger,IPositionRepository positionRepository):base(logger)
        {
            PositionRepository = positionRepository;
        }

        protected IPositionRepository PositionRepository { get; }


        public DataGridOutput<Position> GetPositionByPage(GetPositionDataGridInput input)
        {
            return this.PositionRepository.GetPositionByPage(input);
        }
    }
}


